package com.packenius.library.xspdf;

/**
 * Direction of motion for transition styles SPLIT, BOX and FLY.
 */
public enum XSMotionDirection implements XSPdfContent {
  /**
   * Inward direction motion.
   */
  Inward,

  /**
   * Outward direction motion.
   */
  Outward;

  /**
   * @see com.packenius.library.xspdf.XSPdfContent#getPdfContent(XSPDF)
   */
  public String getPdfContent(XSPDF xsPDF) {
    switch (this) {
    case Inward:
      return ""; // Default.
    case Outward:
      return "/M/O";
    }
    throw new XSPdfException("Impossible getPdfContent()!");
  }
}
